package cn.chinaflame.pagodas.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import cn.chinaflame.pagodas.entity.PaBalmOrder;

/**
* @author    created by lbq
* @date	     2018年7月24日 上午11:23:45
**/
public interface PaBalmOrderRepository extends JpaRepository<PaBalmOrder, String> {
	
    @Query("select c from PaBalmOrder c where c.id = ?1")
    public PaBalmOrder findBalmById(String id);
    @Query("select c from PaBalmOrder c where c.orderId = ?1")
    public List<PaBalmOrder> findByOrderId(String orderId);
}
